var t = require("../../utils/http.js"),
  e = require("../../utils/api.js"),
  n = require("../../utils/language/switchLanguage.js");
Page({
  data: { is_show: !1, content: {} },
  onLoad: function (t) {
    this.initLanguage(),
      this.setData({
        orderNo: t.orderNo,
        merchantNo: wx.getStorageSync("merchantNo"),
      }),
      this.getOrderDetail({ orderSn: t.orderNo });
  },
  initLanguage: function () {
    var t = n.languageVersion(wx.getStorageSync("language"));
    this.setData({ _t: t, languageType: wx.getStorageSync("language") }),
      wx.setNavigationBarTitle({ title: t["订单信息"] });
  },
  getOrderDetail: function (e) {
    var n = this;
    t.getOrderDetail(e).then(function (t) {
      var e = t.data;
      n.setData({ content: e });
    });
  },
  copyText: function (t) {
    var n = t.currentTarget.dataset.text;
    wx.setClipboardData({
      data: n,
      success: function (t) {
        wx.hideLoading(), e.showMsg("复制成功");
      },
    });
  },
  CallPhone: function () {
    wx.makePhoneCall({ phoneNumber: wx.getStorageSync("telphoneNumber") });
  },
  openTip: function () {
    this.setData({ is_show: !0 });
  },
  Cancel: function (t) {
    this.setData({ is_show: !1 });
  },
  toPage: function () {
    wx.navigateTo({
      url:
        "plugin-private://wx393d60d93f70599c/pages/Rule/index?orderType=" +
        this.data.content.orderType +
        "&teamType=" +
        this.data.content.teamType,
    });
  },
  onReady: function () {},
  onShow: function () {},
  onHide: function () {},
  onUnload: function () {
    clearInterval(void 0);
  },
  onPullDownRefresh: function () {},
  onReachBottom: function () {},
});
